from utils.BaseModels import BaseModel
from django.db import models
# from users.models import UserProfile
# from orders.models import Order


# 病史库
class Record(BaseModel.CreateAndUpdateAtBaseModel):
    display = models.CharField('病名', max_length=32, db_index=True, unique=True)
    # user = models.ManyToManyField(UserProfile, default=None, verbose_name='会员', null=True, blank=True)
    # order = models.ManyToManyField(Order, default=None, verbose_name='订单', null=True, blank=True)

    def __str__(self):
        return self.display

    class Meta:
        db_table = 'Records'
        verbose_name = '病史'
        verbose_name_plural = '病史管理'